package com.hudson.plugin;

import javax.persistence.*;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * TbModule entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_module", catalog = "reportdb")
public class TbModule implements java.io.Serializable {

    // Fields

    private Integer moduleId;
    private String productline;
    private String moduleName;

    // Constructors

    /**
     * default constructor
     */
    public TbModule() {
    }

    /**
     * full constructor
     */
    public TbModule(String productline, String moduleName) {
        this.productline = productline;
        this.moduleName = moduleName;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "moduleId", unique = true, nullable = false)
    public Integer getModuleId() {
        return this.moduleId;
    }

    public void setModuleId(Integer moduleId) {
        this.moduleId = moduleId;
    }

    @Column(name = "productline", nullable = false, length = 64)
    public String getProductline() {
        return this.productline;
    }

    public void setProductline(String productline) {
        this.productline = productline;
    }

    @Column(name = "moduleName", nullable = false, length = 64)
    public String getModuleName() {
        return this.moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

}